package home_4_8.company;

public class Juxing {
private  int chang;
private  int kuan;
//封装方法
    public int getChang() {
        return chang;
    }

    public void setChang(int chang) {
        this.chang = chang;
    }

    public int getKuan() {
        return kuan;
    }

    public void setKuan(int kuan) {
        this.kuan = kuan;
    }
   void   zhou(int zhou)
    {

    }

//求周长输出
    public void zhou() {
        int zhou;
        zhou=(chang+kuan)*2;
        System.out.println("他的周长是"+zhou);

    }
//求面积
    public void mian() {
        int mian;
        mian=chang*kuan;
        System.out.println("他的面积是"+mian);
    }
}
